/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2018
 */

package com.bm.console.pojo;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import com.sys.object.common.page.Page;

public class WebDirectCity extends Page implements java.io.Serializable{
	private static final long serialVersionUID = 1L;
	
	//alias
	public static final String TABLE_ALIAS = "WebDirectCity";
	public static final String ALIAS_ID = "id";
	public static final String ALIAS_CHINESE_NAME = "城市名称(中文)";
	public static final String ALIAS_ENGLISH_NAME = "城市名称（英文）";
	public static final String ALIAS_SORT = "排序";
	public static final String ALIAS_STATUS = "状态";
	
	//date formats
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
    /**
     * id       db_column: id 
     */	
	//
	private Long id;
    /**
     * 城市名称(中文)       db_column: chinese_name 
     */	
	//@Length(max=255)
	private String chineseName;
    /**
     * 城市名称（英文）       db_column: english_name 
     */	
	//@Length(max=255)
	private String englishName;
    /**
     * 排序       db_column: sort 
     */	
	//
	private Integer sort;
    /**
     * 状态       db_column: status 
     */	
	//
	private Boolean status;
	//columns END

	public WebDirectCity(){
	}

	public WebDirectCity(
		Long id
	){
		this.id = id;
	}


	public void setId(Long value) {
		this.id = value;
	}
	
	public Long getId() {
		return this.id;
	}

	public void setChineseName(String value) {
		this.chineseName = value;
	}
	
	public String getChineseName() {
		return this.chineseName;
	}

	public void setEnglishName(String value) {
		this.englishName = value;
	}
	
	public String getEnglishName() {
		return this.englishName;
	}

	public void setSort(Integer value) {
		this.sort = value;
	}
	
	public Integer getSort() {
		return this.sort;
	}

	public void setStatus(Boolean value) {
		this.status = value;
	}
	
	public Boolean getStatus() {
		return this.status;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("ChineseName",getChineseName())
			.append("EnglishName",getEnglishName())
			.append("Sort",getSort())
			.append("Status",getStatus())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof WebDirectCity == false) return false;
		if(this == obj) return true;
		WebDirectCity other = (WebDirectCity)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

